{% extends 'base.html.twig' %}
{% trans_default_domain "XxfaxyDryBundle" %}
{% block body_bar %}
    <h5>{{ 'list'|trans }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ path('language_new') }}">{{ 'new'|trans }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table table-striped">
        <thead>
            <tr>
                <th>ID</th>
                <th>键</th>
                <th>English</th>
                <th>简体中文</th>
                <th>备注</th>
                <th>排序</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for rs in list %}
            <tr>
                <td>{{ rs.id }}</td>
                <td>{{ rs.dry_key }}</td>
                <td>{{ rs.dry_en_us }}</td>
                <td>{{ rs.dry_zh_cn }}</td>
                <td>{{ rs.dry_note }}</td>
                <td>{{ rs.dry_sort }}</td>
                <td>{{ rs.dry_add_time }}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-primary" href="{{ dry_path('language_show', rs.id) }}">查看</a>
                        <a class="btn btn-primary" href="{{ dry_path('language_edit', rs.id) }}">编辑</a>
                    </div>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    <div class="text-center">{{ pageCode|raw }}</div>
{% endblock %}
